package com.demo.service.impl;

import com.demo.dao.IUserDao;
import com.demo.domain.User;
import com.demo.service.IUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements IUserService {

    @Autowired
    private IUserDao userDao;

    public User findUserById(Integer id){

        return userDao.findUserById(id);
    }

    public User queryUserById(Integer id){

        return userDao.queryUserById(id);
    }
}
